home *** CD-ROM | disk | FTP | other *** search
/ Aminet 3 / Aminet 3 - July 1994.iso / Aminet / util / misc / man31.lha / Man3.1 / Install < prev    next >
Encoding:
Text File  |  1994-05-02  |  5.8 KB  |  177 lines

  1. ;  *** Man installation scipt ***
  2.  
  3. (welcome "Welcome to the Man installation!")
  4.  
  5. (
  6.    ;get destination dir for Man-Commodity
  7.    (set mydest
  8.         (askdir
  9.                (prompt "Select the directory where you want to put the commodity 'Man'.")
  10.                (help   "The directory where you store the executable "
  11.                        "should be easily accessible via WorkBench or CLI/Shell.\n\n"
  12.                        @askfile-help
  13.                )
  14.                (default "SYS:WBStartup")
  15.                (disk)
  16.         )
  17.    )
  18.  
  19.    (set @default-dest mydest)
  20.    (set mmdest (tackon mydest "Man"))
  21.  
  22.    (
  23.         (if (= 1 (exists mmdest))
  24.             (
  25.             (if (= 0
  26.                 (askbool
  27.                    (prompt "You have already installed Man. Do you wish to overwrite it?\n\n")
  28.                    (help @askbool-help)
  29.                    (default 1)
  30.                    (choices "Continue" "Abort")
  31.                    ))
  32.  
  33.              (abort "Okay, I didn't overwrite the executable.")
  34.              )
  35.           )
  36.        )
  37.    )
  38.  
  39.    (copyfiles
  40.        (prompt ("Copying Man executable to %s." mydest))
  41.        (help @copyfiles-help)
  42.        (source "Man")
  43.        (dest mydest)
  44.        (infos)
  45.    )
  46.  
  47. )
  48.  
  49. (
  50.    ;Copy Docs
  51.    (if
  52.       (set qval
  53.            (askoptions
  54.                 (prompt "Please choose which docs you want to have installed! "
  55.                         "(Or choose none to have no docs installed!)")
  56.                          (choices
  57.                               "English Doc"
  58.                   "English Guide"
  59.                               "German Doc"
  60.                   "German Guide"
  61.                          )
  62.                          (default 0)
  63.                          (help
  64.                                "Not installing the docs is unwise because you could have "
  65.                                "questions while using Man. Choosing the "
  66.                                "documentation in your favourite language is sufficient.\n\n"
  67.                                @askoptions-help
  68.                          )
  69.                 )
  70.            )
  71.  
  72.            (
  73.                 (set docsdest
  74.                      (askdir
  75.                          (prompt "Select the directory where you want to put the docs.")
  76.                          (help
  77.                               "You may store the docs where you usually store docs or "
  78.                               "in the directory where Man resides in.\n\n"
  79.                               @askfile-help
  80.                               )
  81.                          (default mydest)
  82.                          )
  83.                      )
  84.  
  85.                      (if (IN qval 0)
  86.                          (copyfiles
  87.                              (prompt ("Copying english doc to %s." docsdest))
  88.                              (help @copyfiles-help)
  89.                              (source "DOCS/English/Man.DOC")
  90.                              (dest docsdest)
  91.                              (infos)
  92.                          )
  93.                      )
  94.  
  95.                      (if (IN qval 1)
  96.                          (copyfiles
  97.                              (prompt ("Copying english guide to %s." docsdest))
  98.                              (help @copyfiles-help)
  99.                              (source "DOCS/English/Man.guide")
  100.                              (dest docsdest)
  101.                              (infos)
  102.                          )
  103.                  )
  104.  
  105.                      (if (IN qval 2)
  106.                          (copyfiles
  107.                              (prompt ("Copying german doc to %s." docsdest))
  108.                              (help @copyfiles-help)
  109.                              (source "DOCS/Deutsch/Man.dok")
  110.                              (dest docsdest)
  111.                              (infos)
  112.                          )
  113.                      )
  114.  
  115.                      (if (IN qval 3)
  116.                          (copyfiles
  117.                              (prompt ("Copying german guide to %s." docsdest))
  118.                              (help @copyfiles-help)
  119.                              (source "DOCS/Deutsch/Man.guide")
  120.                              (dest docsdest)
  121.                              (infos)
  122.                          )
  123.                      )
  124.                )
  125.         )
  126. )
  127.  
  128. (
  129.    ;install LOCALEs
  130.    (set catdir "LOCALE:catalogs")
  131.  
  132.    (if (= 2 (exists "LOCALE:" (noreq)))
  133.        (if
  134.           (set qval
  135.                (askoptions
  136.                    (prompt "Please choose which catalogs you want to have "
  137.                            "installed! "
  138.                            "(Or choose none to have no catalogs installed!)")
  139.                    (choices
  140.                            "Deutsch"
  141.                "Svenska"
  142.                    )
  143.                    (default 1)
  144.                    (help
  145.                            "It is sufficient to install the catalog(s) of the language(s) "
  146.                            "that you specified as 'preferred' in the locale-preferences "
  147.                            "editor. \n\n"
  148.                            @askoptions-help
  149.                    )
  150.                )
  151.            )
  152.        (
  153.                (if (IN qval 0)
  154.                    (copyfiles
  155.                        (prompt ("Copying german catalog to %s." (tackon catdir "deutsch")))
  156.                                (help @copyfiles-help)
  157.                                (source "Catalogs/deutsch/man.catalog")
  158.                                (dest (tackon catdir "deutsch"))
  159.                                (infos)
  160.                )
  161.            )
  162.  
  163.                (if (IN qval 1)
  164.                    (copyfiles
  165.                        (prompt ("Copying swedish catalog to %s." (tackon catdir "svenska")))
  166.                                (help @copyfiles-help)
  167.                                (source "Catalogs/svenska/man.catalog")
  168.                                (dest (tackon catdir "svenska"))
  169.                                (infos)
  170.                        )
  171.                    )
  172.                )
  173.            )
  174.     )
  175. )
  176.  
  177.